import requests from './request'

// home
// 获取banner轮播图
export const reqBannerList = () => {
    //发请求 axios发请求返回Promise对象
    return requests({
       url: '/banner?type=2',
       method: 'get'
    })
 }
// 获取歌单轮播图
export const reqMusicList = () =>{
   return requests({
      url:'/personalized?limit=10',
      method:'get'
   })
}
// ItemMusic
// 获取id，然后到歌单详情
export const reqPlayList = (data) =>{
   return requests({
      url:`/playlist/detail?id=${data}`,
      method:'get'
   })
}
// 获取歌单所有歌曲
export const reqPlayAllList = (data) =>{
   return requests({
      url:`/playlist/track/all?id=${data}&limit=100&offset=0`,
      method:'get'
   })
}
// 获取歌曲信息
export const reqSongDetail = (data) =>{
   return requests({
      url:`/song/detail?ids=${data}`,
      method:'get'
   })
}